using ControlLibrary.Interfaces;

namespace ControlLibrary.Impl
{
    public class DataBound : IDataBoundControl
    {
        private string propertyName;
        private object dataSource;
        private string dataMember;

        public DataBound()
        {
            this.propertyName = string.Empty;
            this.dataSource = null;
            this.dataMember = string.Empty;
        }

        public DataBound(string propertyName, object dataSource, string dataMember)
        {
            this.propertyName = propertyName;
            this.dataSource = dataSource;
            this.dataMember = dataMember;
        }

        public string PropertyName
        {
            get { return propertyName; }
            set { propertyName = value; }
        }

        public object DataSource
        {
            get { return dataSource; }
            set { dataSource = value; }
        }

        public string DataMember
        {
            get { return dataMember; }
            set { dataMember = value; }
        }
    }
}